package com.sinodata.bsm.common.constants;

import java.util.*;

public class ResGroupTypeMap {
    private static Map<Long, Long[]> map = new HashMap<Long, Long[]>();
    private static Map<Long, String> displayMap = new LinkedHashMap<Long, String>();
    static {
        displayMap.put(100L, "接口关联");
        map.put(100L, new Long[0]);
        displayMap.put(1000L, "应用服务类资源");
        map.put(1000L, new Long[] { 1105060000000L });
        //============================================
        displayMap.put(1010L, "进程类");
        map.put(1010L, new Long[] { 1205020100000L, 1205020200000L });
        //============================================
        displayMap.put(1020L, "网络端口类");
        map.put(1020L, new Long[] { 1201080000000L });
        //============================================
        displayMap.put(1030L, "文件、日志类");
        map.put(1030L, new Long[] { 1205010100000L, 1205010300000L });
        //============================================
        displayMap.put(1040L, "SQL查询类");
        map.put(1040L, new Long[] { 1205040200000L });
        //============================================
        displayMap.put(1050L, "自定义脚本类");
        map.put(1050L, new Long[] { 1205040300000L });
        //============================================
        displayMap.put(2000L, "主机");
        map.put(2000L, new Long[] { 1101000000000L });
        //============================================
        displayMap.put(2100L, "数据库");
        map.put(2100L, new Long[] { 1102000000000L });
        //============================================
        displayMap.put(2200L, "中间件");
        map.put(2200L, new Long[] { 1103000000000L, 1104000000000L });
        //============================================
        displayMap.put(2300L, "虚拟化、存储设备");
        map.put(2300L, new Long[] { 1108000000000L });
        //============================================

    }

    public static Long[] getResType(Long key) {
        return map.get(key);
    }

    public static Map<Long, String> getDisplayMap() {
        return displayMap;
    }

}
